package com.Springexample.demo.service;

public class MyService {
    private String name;

    // 必须有无参构造函数
    public MyService() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMessage() {
        return "Hello from MyService, " + name + "!";
    }
}